package com.zhkeshe.keshe.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhkeshe.keshe.entity.Device;
import com.zhkeshe.keshe.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface DeviceMapper extends BaseMapper<Device> {
    @Select("select *from [Device] where Id=#{Id}")
    Device selectById(Long Id);

    @Select("select *from [Device] where DeviceUUID=#{DeviceUUID}")
    Device selectByUUID(String DeviceUUID);
    @Insert("INSERT INTO [Device] (DeviceUUID, DeviceName) VALUES (#{DeviceUUID}, #{DeviceName})")
    public void insertDevice(Device device);
}
